package com.zjgsu.nftplatform.service;

import com.github.pagehelper.PageInfo;
import com.zjgsu.nftplatform.pojo.*;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author ahy231
 * @date 2022/3/26 21:31
 * @description
 */
public interface GoodsService {
    List<Advertisement> advertisement();

    PageInfo<GoodsInfo> workResearch(GoodsResearch research);

    PageInfo<DealInfo> dealResearch(DealResearch research);

    List<GoodsDetail> goodsDetail(Long nftId);

    Object commentInfo(Long nftId);

    void newGoods(GoodsParameter goodsParameter);

    void saleGoods(Long nftId);

    void bidding(Long wareId, BigDecimal price);

    void offer(OfferInfo info);

    void consume(String nftId);

    void comment(Long nftId, Long commentId, String content);

    Boolean isParentAuthor(Long nftId);

    void off(Long wareId);

    void modify(ModifyGoodsParameter parameter);

    PageInfo<BargainInfo> offerSearch(BargainSearch search);
}
